package com.ruanjian.api.service.impl;

import com.ruanjian.api.bean.Experiment;
import com.ruanjian.api.mapper.ExperimentMapper;
import com.ruanjian.api.service.IExperimentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shkstart
 * @create 2022-11-30 8:48
 */
@Service
public class ExperimentServiceImpl implements IExperimentService {

    @Autowired
    ExperimentMapper experimentMapper;

    @Override
    public int insertSelective(Experiment record) {
        return experimentMapper.insertSelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return experimentMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Experiment record) {
        return experimentMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<Experiment> selectSelective(Experiment record) {
        return experimentMapper.selectSelective(record);
    }
}
